/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package py.com.peluq.model.entity;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Embeddable;
import javax.validation.constraints.NotNull;

/**
 *
 * @author Diego_M
 */
@Embeddable
public class ReservaTurnoPK implements Serializable {
    @Basic(optional = false)
    @NotNull
    @Column(name = "cli_cod", nullable = false)
    private int cliCod;
    @Basic(optional = false)
    @NotNull
    @Column(name = "ci_emp", nullable = false)
    private int ciEmp;
    @Basic(optional = false)
    @NotNull
    @Column(name = "re_cob", nullable = false)
    private int reCob;

    public ReservaTurnoPK() {
    }

    public ReservaTurnoPK(int cliCod, int ciEmp, int reCob) {
        this.cliCod = cliCod;
        this.ciEmp = ciEmp;
        this.reCob = reCob;
    }

    public int getCliCod() {
        return cliCod;
    }

    public void setCliCod(int cliCod) {
        this.cliCod = cliCod;
    }

    public int getCiEmp() {
        return ciEmp;
    }

    public void setCiEmp(int ciEmp) {
        this.ciEmp = ciEmp;
    }

    public int getReCob() {
        return reCob;
    }

    public void setReCob(int reCob) {
        this.reCob = reCob;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (int) cliCod;
        hash += (int) ciEmp;
        hash += (int) reCob;
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof ReservaTurnoPK)) {
            return false;
        }
        ReservaTurnoPK other = (ReservaTurnoPK) object;
        if (this.cliCod != other.cliCod) {
            return false;
        }
        if (this.ciEmp != other.ciEmp) {
            return false;
        }
        if (this.reCob != other.reCob) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "py.com.peluq.model.entity.ReservaTurnoPK[ cliCod=" + cliCod + ", ciEmp=" + ciEmp + ", reCob=" + reCob + " ]";
    }
    
}
